import {
    BOOKS_ROUTE,
    
    BOOKS_LIST_ROUTE,
    BOOKS_CHAPTER_ROUTE,

} from '@/constants/routes';
import Books from '@/components/Books';

import BookList from "@/components/Books/BookList";
import Chapter from "@/components/Books/Chapter";



export default {
    path: '/book',
    name: BOOKS_ROUTE,
    meta: '书籍',
    redirect: { name: BOOKS_LIST_ROUTE },
    //redirect: { name: BOOKS_CHAPTER_ROUTE },
    component: Books, 
    children: [

        {
            path: 'list',
            name: BOOKS_LIST_ROUTE,
            meta: '书籍列表页',
            component: BookList
        },
        {
            path: 'chapter',
            name: BOOKS_CHAPTER_ROUTE,
            meta: '书籍章集详情',
            component: Chapter
        },
    ]
};
